using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace DACNPM.ReportFile
{
    public partial class HoaDonNhapHangReport : DevExpress.XtraReports.UI.XtraReport
    {
        public HoaDonNhapHangReport()
        {
            InitializeComponent();
        }

        public void Load(String tenNCC, String ngayNhap,String idHoaDonNhap)
        {
            lblMaSoHDNhap.Text = idHoaDonNhap;
            lblNCC.Text = tenNCC;
            lblNgayNhap.Text = ngayNhap;

            xrMaHang.DataBindings.Add("Text", DataSource, "id_Hang");
            xrTenHang.DataBindings.Add("Text", DataSource, "TenHang");
            xrSoLuong.DataBindings.Add("Text", DataSource, "SoLuong");
            
            xrDonGia.DataBindings.Add("Text", DataSource, "DonGia");
            xrThanhTien.DataBindings.Add("Text", DataSource, "ThanhTien");


        }
    }
}
